/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package arraydependentqueue;

/**
 *
 * @author mweya
 */
public class Node<AnyType> {
    private AnyType data = null;
    
    public Node() {
    
    }
    
    public Node(AnyType data) {
        this.data = data;
    }
    
    public void setData(AnyType data) {
        this.data = data;
    }
    
    public AnyType getData() {
        return (AnyType) this.data;
    }
    
    @Override
    public String toString() {
        return "Node=("+this.data+")";
    }
}